﻿using System.Collections.Generic;
using System.Drawing;

namespace CoreShop.App
{
    public class ClassItemInfo
    {
        /// <summary>
        /// 名称1
        /// </summary>
        public string Field1 { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public string Field2 { get; set; }

        /// <summary>
        /// 打折前金额
        /// </summary>
        public string Field3 { get; set; }

        /// <summary>
        /// 实收金额
        /// </summary>
        public string Field4 { get; set; }

        /// <summary>
        /// 类型(表头0，明细标题1，明细数据2
        /// </summary>
        public int ItemType { get; set; }

        /// <summary>
        /// 商品标签
        /// </summary>
        public readonly List<string> Tags = new List<string>();

        public Color ForeColor { get; set; } = Color.Black;

        public ClassItemInfo()
        {
            Field1 = "";
            Field2 = "";
            Field3 = "";
            Field4 = "";
            ItemType = 0;
        }

        public void AddTag(string tag)
        {
            Tags.Add(tag);
        }

        public void ClearTags()
        {
            Tags.Clear();
        }
    }
}
